TextGrid : Menu Bar of the XML Editor Perspective

When you open the XML Editor, some items in the menu bar are activated. Some you can find under “Edit”, some under “XML”.

Edit

If the XML Editor is opened, options from “Edit” in the menu bar can be used, depending on the view opened in the Editor Field. Most items are displayed if the XML file is opened in the Source View.

  • Undo  and Redo : To undo or redo a change made to a document click “Edit > Undo” or “Edit > Redo” in the menu bar above.
  • Cut , Copy and Paste : Use “Edit > Cut”, “Edit > Copy” and “Edit > Paste” in the menu bar to arrange parts of the source code.
  • Delete  and Select All : For removing code parts use “Edit > Delete”. Use “Edit > Select All” to mark all souce code of an XML document.
  • Find and Replace : To open the “Find and Replace” dialog box, click “Edit > Find and Replace” in the menu bar on top. You can specify text to search for and optionally replacement text in this dialog box. You can set:
    • the search direction (“Forward” or “Backward” from the current caret position)
    • the scope (“All” or “Selected lines” to search within a selected area)
    • whether your search should be “Case sensitive” or not
    • “Whole word” to match the entire search string
    • “Wrap search” at the end of the file
    • “Incremental” which causes the editor focus to move to the first complete occurrence of the text you are typing
    • the “Regular expressions” checkbox to activate the regular expressions mode. Type [Ctrl+Space] over the text field to get content assistance that lists all possible expressions
  • Expand selection to: For marking up passages in the Source View “Expand selection to” offers you the option to select the enclosing, the next or the previous element. In addition, you can restore the last selection.
  • Content Assist: For more information see the explanation about the Source View.
  • Show Tooltip Description: Displays tooltip description, where applicable. It shows the value of a hover that would appear at the current cursor location.
  • Word Completion: Use this to get suggestions from the program for completing a word.
  • Quick fix: For more information see the explanations about the Source View.
  • Smart Insert Mode: For more information please see the explanation about the Source View.

XML

The following operations can be started from the menu bar item “XML”: